package com.wwl.springcloud.service;

import com.wwl.springcloud.dto.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/23 18:28
 * @description:
 */
@Component
@FeignClient(value = "seata-account-service")
public interface  AccountService {
    @GetMapping("/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);

}
